﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [Table(Tablename = "bill_purchase_payment")]
    public class BillPurchasePayment: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true)]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String purchaseNo;

        [Table(Columnname = "purchase_no", Columntype="varchar", Iscondition=true, Isdeletefield=true)]
        public String PurchaseNo
        {
            get { return purchaseNo; }
            set { purchaseNo = value; }
        }

        private String supplierNo;

        [Table(Columnname = "supplier_no", Columntype="varchar", Iscondition=true, Isupdatefield=true)]
        public String SupplierNo
        {
            get { return supplierNo; }
            set { supplierNo = value; }
        }

        private String supplierName;

        [Table(Columnname = "supplier_name", Columntype="varchar", Isupdatefield=true)]
        public String SupplierName
        {
            get { return supplierName; }
            set { supplierName = value; }
        }

        private Decimal purchaseTotal;

        [Table(Columnname = "purchase_total", Columntype="decimal", Isupdatefield=true)]
        public Decimal PurchaseTotal
        {
            get { return purchaseTotal; }
            set { purchaseTotal = value; }
        }

        private Decimal debtAmount;

        [Table(Columnname = "debt_amount", Columntype="decimal", Isupdatefield=true)]
        public Decimal DebtAmount
        {
            get { return debtAmount; }
            set { debtAmount = value; }
        }

        private Decimal payAmount;

        [Table(Columnname = "pay_amount", Columntype="decimal", Isupdatefield=true)]
        public Decimal PayAmount
        {
            get { return payAmount; }
            set { payAmount = value; }
        }

        private Decimal remainAmount;

        [Table(Columnname="remain_amount", Columntype="decimal", Isupdatefield=true)]
        public Decimal RemainAmount
        {
            get { return remainAmount; }
            set { remainAmount = value; }
        }

        private DateTime paymentDate;

        [Table(Columnname="payment_date", Columntype="datetime")]
        public DateTime PaymentDate
        {
            get { return paymentDate; }
            set { paymentDate = value; }
        }

        private String bankName;

        [Table(Columnname="bank_name", Columntype="varchar", Isupdatefield=true)]
        public String BankName
        {
            get { return bankName; }
            set { bankName = value; }
        }

        private String bankAccount;

        [Table(Columnname = "bank_account", Columntype = "varchar", Isupdatefield = true)]
        public String BankAccount
        {
            get { return bankAccount; }
            set { bankAccount = value; }
        }

        private String payee;

        [Table(Columnname = "payee", Columntype = "varchar", Isupdatefield = true)]
        public String Payee
        {
            get { return payee; }
            set { payee = value; }
        }

        private String adminUsername;

        [Table(Columnname = "admin_username", Columntype = "varchar", Iscondition = true)]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname = "admin_name", Columntype = "varchar", Iscondition = true)]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }
        
        private DateTime createtime;

        [Table(Columnname = "createtime", Columntype = "datetime")]
        public DateTime Createtime
        {
            get { return createtime; }
            set { createtime = value; }
        }
    }
}
